function test1() {
	$.ajax({
		type: 'GET',
        url: "test/getUser1",
        data : 	{
        	name: "liuwenz",
        	age: 18
        },
        contentType: 'application/json',
        success: function (result) {
        	console.log(result);
        	alert(result);
        },
        error: function() {
        	alert("123");
        }
	});
}

function test2() {
	var id = "liuwenz";
	$.ajax({
		type: 'POST',
        url: "test/getUser2",
        data : {
        	name: "liuwenz",
        	age: 18
        },
        //contentType: 'application/json',
        success: function (resultData) {
        	alert(result);
        }
	});
}

function test3() {
	$.ajax({
		type: 'POST',
        url: "test/getUser3?t=/哈哈你是不是傻",
        data: JSON.stringify({
        	name: "liuwenz",
        	age: 18
        }),
        contentType: 'application/json',
        success: function (resultData) {
        	alert(result);
        }
	});
}

/*function test3() {
	$.ajax({
		type: 'POST',
        url: "test/getUser4/哈哈你是不是傻",
        data: JSON.stringify({
        	name: "liuwenz",
        	age: 18
        }),
        contentType: 'application/json',
        success: function (resultData) {
        	alert(result);
        }
	});
}*/


/*function test5() {
	$.ajax({
		type: 'POST',
        url: "test/getUser6",
        data: JSON.stringify({"parent": {"name":"小明的父亲","age":44},"name":"小明","age":23,"child":[{"name":"小明的儿子","age":12,"child":[{"name":"小明的儿子的儿子","age":5,"child":[{"name":"小明的儿子的儿子的儿子","age":1,"child":null}]}]}]}),
        contentType: 'application/json',
        success: function (resultData) {
        	alert(result);
        }
	});
}*/

function test5() {
	$.ajax({
		type: 'POST',
        url: "test/getUser6",
        data: {"name":"小明","age":23},
        //contentType: 'application/json',
        success: function (resultData) {
        }
	});
}
